import service from "@/api/index";
//赛事相关接口
export default {
	EditCompetitionApi: (params: object) => {
		//添加赛事
		return service.post("/api/Competition/EditCompetition", params);
	},
	GetCompetitionPageListApi: (params: object) => {
		//获取赛事项目
		return service.post("/api/Competition/GetCompetitionPageList", params);
	},
	CloseCompetitionApi: (params: string) => {
		//关闭相关赛事
		return service.post("/api/Competition/CloseCompetition", { Id: params });
	},
	ReleaseCompetitionApi: (params: string) => {
		//发布赛事
		return service.post("/api/Competition/ReleaseCompetition", { Id: params });
	},
	GetCompetitionDetailsByIdApi: (params: string) => {
		//获取赛事详情
		return service.post("/api/Competition/GetCompetitionDetailsById", { Id: params });
	},
	GetNotClosedCompetitionListApi: () => {
		//报名获取已启用状态下的赛事列表
		return service.post("/api/Competition/GetNotClosedCompetitionList");
	}
};
